import { Module } from '@nestjs/common';
import { PoetryService } from './poetry.service';
import { PoetryController } from './poetry.controller';
import { Poetry } from './entities/poetry.entity';
import {TypeOrmModule} from '@nestjs/typeorm';
@Module({
  imports: [
    TypeOrmModule.forFeature([Poetry]),
    // JwtModule.registerAsync({
    //   imports: [ConfigModule],
    //   useFactory: async (config: ConfigService) => ({
    //     secret: config.get('jwt.secretkey'),
    //   }),
    //   inject: [ConfigService],
    // }),
  ],
  controllers: [PoetryController],
  providers: [PoetryService],
  exports: [PoetryService],
})
export class PoetryModule {}
